package com.chuanjiabao.wisdom.util;

import android.text.TextUtils;

import com.bumptech.glide.load.model.GlideUrl;

public class StableGlideUrl extends GlideUrl {

    private String mUrl;
    private String name;

    public StableGlideUrl(String url, String name) {
        super(url);
        this.mUrl = url;
        this.name = name;
    }

    @Override
    public String getCacheKey() {
        return TextUtils.isEmpty(name) ? mUrl : name;
    }

}
